package pl.ydp.utils
{
	import flexunit.framework.TestCase;
	
	import pl.ydp.utils.ColorUtil;

	public class ColorUtilTest extends TestCase{
		
		public function testConvertToARGB():void{
			assertEquals("0 alpha, 0xFF34AB color", 0x00FF34AB, ColorUtil.convertToARGB(0xFF34AB, 0));
			assertEquals("1 alpha, 0xFF34AB color", 0xFFFF34AB, ColorUtil.convertToARGB(0xFF34AB, 1));
			assertEquals("0.2 alpha, 0xFF34AB color", 0x33FF34AB, ColorUtil.convertToARGB(0xFF34AB, 0.2));
		}
	}
}